package com.xuecheng.content.feignclient;

import com.xuecheng.content.config.MultipartSupportConfig;
import com.xuecheng.content.feignclient.po.CourseIndex;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author Linzkr
 * @description: TODO 搜索服务远程调用接口
 * @date 2023/1/21 13:48
 */


@FeignClient(value = "search",configuration = MultipartSupportConfig.class,fallbackFactory = SearchServiceClientFallbackFactory.class)
@RequestMapping("/search")
public interface SearchServiceClient {
    @PostMapping("/index/course")
    Boolean add(@RequestBody CourseIndex courseIndex);



}
